<%@ Control Inherits="CVCommunity.Admin.AccessE" %>

<form runat="server" onsubmit="return checknumber();">
<div class="grid">
<table cellspacing="0" width="100%">

<tr class="forumno category">
<td colspan="2">用户操作设置</td>
</tr>
<tr class="forumtd">
<td width="160">允许注册新会员</td>
<td class="smallbox"><asp:CheckBox ID="EnabledRegistration" runat="server" Text=""/>允许</td>
</tr>
<tr class="forumtd">
<td valign="top">用户名不允许注册<br />
<span class="t1">(每个用户名用“|”分割)</span></td>
<td><asp:TextBox ID="ReserveUsername" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" TextMode="MultiLine" Width="500" Height="100" runat="server"></asp:TextBox></td>
</tr>
<tr class="forumtd">
<td>注册帐户名称的最大</td>
<td class="t1"><asp:TextBox ID="MaxLengthOfUsername" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" Width="50" runat="server" alt='numeric' />
字节，最小
<asp:TextBox ID="MinLengthOfUsername" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" Width="50" runat="server" alt='numeric'/>
字节(一个中文字符为2个字节) </td>
</tr>
<tr class="forumtd">
<td>用户帐号激活模式</td>
<td class="forumno smallbox">
<asp:RadioButtonList ID="ActivateMode" RepeatDirection="Horizontal" runat="server" CellPadding="0" CellSpacing="0">
<asp:ListItem Text="不需要激活" Value="0" />
<asp:ListItem Text="通过Email认证" Value="1" />
<asp:ListItem Text="人工激活" Value="2" /></asp:RadioButtonList></td>
</tr>
<tr class="forumtd">
<td>Email 激活标题</td>
<td class="t1"><asp:TextBox ID="EmailSubject" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="360" /></td>
</tr>
<tr class="forumtd">
<td valign="top">邮箱发送的激活内容<br /><span class="t1"><span style="color:#000;">注释:</span><br />用户名{UserName}<br />论坛名称{ForumName}<br />激活地址{ActivateUrl}</span></td>
<td class="t1" valign="top">
<script src="../scripts/common.js"></script>
<script src="../scripts/ubb.js"></script>
<script src="../scripts/ubbeditor.js"></script>
<script>CreateUbbEditor('EmailBody', 15, '../');</script>
<textarea name="EmailBody" rows="2" cols="20" id="EmailBody" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="height:100px;width:500px;"><%=EmailBodyText%></textarea>
</td>
</tr>
<tr class="forumtd">
<td valign="top">密码找回方式</td>
<td class="forumno smallbox"><asp:RadioButtonList ID="PasswordGetBackMode" RepeatDirection="Horizontal" runat="server" CellPadding="0" CellSpacing="0">
<asp:ListItem Text="直接提供修改(较方便)" Value="0" />
<asp:ListItem Text="发送密码到会员邮箱(更安全)" Value="1" />
</asp:RadioButtonList></td>
</tr>
<tr class="forumtd">
<td valign="top">新会员注册后需要</td>
<td><asp:TextBox ID="WaitMinutesToPostAfterReg" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric' />
分钟后才能发帖</td>
</tr>
<tr class="forumtd">
<td valign="top">发表帖子后</td>
<td><asp:TextBox ID="MaxReeditDelayHours" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric' />
小时内可重新编辑，过期不可编辑</td>
</tr>
<tr class="forumtd">
<td valign="top">新会员注册默认拥有</td>
<td><asp:TextBox ID="CreditsForNewRegister" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric'/>
积分</td>
</tr>
<tr class="forumtd">
<td valign="top">用户</td>
<td><asp:TextBox ID="UserTimeOut" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric' />
分钟内不活动，则视为离线</td>
</tr>
<tr class="forumtd">
<td valign="top">页面访问间隔时间</td>
<td><asp:TextBox ID="VisitSpan" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric'/>
秒</td>
</tr>
<tr class="forumtd">
<td valign="top">发帖间隔时间</td>
<td><asp:TextBox ID="PostSpan" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric'/>
秒</td>
</tr>
<tr class="forumtd">
<td valign="top">搜索间隔时间</td>
<td><asp:TextBox ID="SearchSpan" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric'/>
秒</td>
</tr>
<tr class="forumtd">
<td valign="top">注册后发送欢迎信息</td>
<td class="smallbox"><asp:CheckBox ID="SendWelcomeMessage" runat="server"/>
发送</td>
</tr>
<tr class="forumtd">
<td valign="top">欢迎信息内容</td>
<td>
<script src="../scripts/common.js"></script>
<script src="../scripts/ubb.js"></script>
<script src="../scripts/ubbeditor.js"></script>
<script>CreateUbbEditor('WelcomeMessage', 15, '../');</script>
<textarea name="WelcomeMessage" rows="2" cols="20" id="WelcomeMessage" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="height:100px;width:500px;"><%=WelcomeMessageText%></textarea>
</td>
</tr>


<tr class="forumtd">
<td colspan="2" align="center"><asp:Button Text="保存设置" class="button" OnClick="Save" runat="server"></asp:Button></td>
</tr>
</table>
</div>



</form>
